<?php
class omeauto_finder_autoconfirm{
    var $detail_basic = '基本信息';

    function detail_basic($oid){
        $render = app::get('omeauto')->render();
        
        $oConfirm = &app::get('omeauto')->model("autoconfirm");
        $autoconfirm = $oConfirm->dump($oid);
        
        $detail_basic = kernel::single("omeauto_auto")->get_detail_basic($autoconfirm['config']);
        
        $render->pagedata['detail_basic'] = $detail_basic;
        
        return $render->fetch("autoconfirm/detail_basic.html");
    }
    
    var $column_edit='操作';
    var $column_edit_width = "70";

    function column_edit($row){
        $finder_id = $_GET['_finder']['finder_id'];
        $oid = $row['oid'];
        $html = "<a target='_blank' href='index.php?app=omeauto&ctl=autoconfirm&act=edit&p[0]={$oid}&finder_id={$finder_id}'>编辑</a>";
        return $html;
    }
    
}